#app {
  

  .sidebar-container {
    position: fixed;
    transition: width 0.28s;
    width: $sideBarWidth;
    background-color: $menuBg;
    height: 100%;
    font-size: 0px;
    z-index: 1001;
    overflow: hidden;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }
    .main-org-container{
      //height: 70px;
      margin: 12px 8px 0px;
      border-bottom: 1px solid var(--im_chatlist_press_bg_color,rgba(126,134,142,.16));
      .sidebar-org-container{
        width: 100%;
        padding-top: 8px;
        padding-bottom: 5px;
        .sidebarOrgShow{
          display: flex;
          flex-direction: row;
          font-size: 14px !important;
          cursor: pointer;
          .org-info{
            margin-left: 12px;
            .org-name{
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
              width: 130px;
              font-weight: bold;
              color: var(--common_level1_base_color,#171a1d);
            }
          }
        }
        .org-logo{
          width: 32px;
          height: 32px;
          margin-top: 6px;
          cursor: pointer;
          border-radius: 6px;
        }
       

      }
    }
    .sidebar-footer{
      font-size: 14px;
      color: red;
      height: 50px;
      border-top: 1px solid var(--im_chatlist_press_bg_color, rgba(126, 134, 142, 0.16));
      text-align: center;
      line-height: 50px;
      color: var(--common_level2_base_color,rgba(23,26,29,.6));
      cursor: pointer;
      .name{
        margin-left: 10px;
      }
    }
    .sidebar-footer:hover{
      background: var(--common_hover_bg_color,rgba(126,134,142,.12));
    }

    .el-scrollbar {
     // height: calc(100% - 180px);
      flex: 1;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 180px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 5px;
    }

    .sub-el-icon {
      margin-right: 5px;
      margin-left: -2px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }

    // menu hover
    .submenu-title-noDropdown,
    .el-submenu__title {
      &:hover {
        background-color: $menuHover !important;
        color: $menuHoverText !important;
      }
    }

    .is-active>.el-submenu__title {
      color: $subMenuActiveText !important;
      i{
        color: inherit !important;
      }
    }

    & .nest-menu .el-submenu>.el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: $sideBarWidth !important;
      background-color: $subMenuBg !important;

      &:hover {
        background-color: $subMenuHover !important;
        color: $menuHoverText !important;
      }
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 54px !important;
    }

    .main-container {
      margin-left: 54px;
    }

    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;
      text-align: center;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

        .sub-el-icon {
          margin-left: 19px;
        }
      }
    }
    
    .el-submenu {
      overflow: hidden;

      &>.el-submenu__title {
        padding: 0 !important;
        text-align: center;
        

        .svg-icon {
          margin-left: 20px;
        }

        .sub-el-icon {
          margin-left: 19px;
        }

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform .28s;
      width: $sideBarWidth !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$sideBarWidth, 0, 0);
      }
    }
  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }
    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
    &:hover {
      background-color: $menuHover !important;
      color: $menuHoverText !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}
